/*
 * Copyright (c) 2009 Project E7
 *
 * This file is part of ZebBowling
 *
 * ZebBowling is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * ZebBowling is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with ZebBowling. If not, see <http://www.gnu.org/licenses/>.
 **/

package org.zebbowling.control;

import com.sun.spot.io.j2me.radiogram.RadiogramConnection;

/**
 * This class contains constants used for identifying the type of packet being
 * sent over a {@link RadiogramConnection}
 *
 * @author Joel Jauregui
 */
public interface PacketTypes {

     /** Packet type indicating there is a message */
    public static final byte MESSAGE = -1;

    /** Enquiry if a connection has been made */
    public static final byte ARE_YOU_THERE = 2;

    /** Requests to close this connection */
    public static final byte CLOSE_CONNECTION = 4;

    /** Says yes to any enquiry */
    public static final byte YES = 1;

    /** Says no to any enquiry */
    public static final byte NO = 0;

    /** Package type indicating sensor data is being sent */
    public static final byte DATA_PACK_SEND = 3;

    /** Queries if the connection is still alive */
    public static final byte PING = 5;

    /** Tells remote SPOT that there is a server */
    public static final byte SERVER_AVALIABLE = 6;

    }
